package com.fullstuck.dao.impl;

import com.fullstuck.dao.Pig;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

// 等价 <bean id="pig_dao" class="com.fullstuck.dao.impl.PigDaoimpl"></bean>
//@Component("pig_dao")

@Repository("pig_dao")
public class PigDaoimpl implements Pig {
    public void eat() {
        System.out.println("猪正在吃东西 吃的很香");
    }
}
